<?php

if (!defined('APP')) {
    die('error');
}

class User extends PayBase
{

    //构造函数
    public function __construct()
    {
        parent::__construct();
        $this->getDb();
    }

    //获取用户
    public function getUserByOpenid()
    {
        $openid = $this->db->getval('openid');
        $query = "select * from " . QZ . "user where openid='{$openid}' ";
        $this->db->s($query);
    }

    //
    public function getAllQiShou()
    {
        $query = "select * from " . QZ . "user where status=1 order by shijian desc  ";
        $this->db->s($query);
    }
}
